<template>
<!--  <div class="image"><img width=100% height=100% src="../assets/bg.png" alt=""> </div>-->
  <div class="navbar">
    <!--    <div class="logo">-->
    <!--      <img src="../assets/Header/logo.png" alt="">-->
    <!--    </div>-->

    <div class="nav">
      <ul>
        <li>
          <div class="header flex " @click="backToHome"><div class="borderLeftRight"><el-button type="success"><i class="el-icon-s-home"></i>首页</el-button> </div></div>
        </li>
        <li>
          <div class="header flex "><div class="borderLeftRight">欢迎您</div></div>
        </li>
        <li>
          <div class="header flex "><div class="borderLeftRight"><el-button type="primary">个人中心</el-button></div></div>
        </li>
        <li>
          <div class="header flex " @click="logout"><div class="borderLeftRight"><el-button type="danger">退出登录</el-button> </div></div>
        </li>
      </ul>
    </div>
  </div>
</template>
<script>
export default {
  name: "appheader",
}
</script>
<style>
.flex{
  display: inline-block;
}
.header{
  cursor: pointer;
  width: 100%;
  height: 100%;
  line-height: 70px;
  text-align: center;
  font-size: 17px;
}
li {
  /* 清除li元素前面的项目符号 */
  list-style: none;
}
.navbar {
  width: 100%;
  height: 100px;
  position: relative;
  z-index:999;
  background-color: rgb(0, 255, 153);
  /* 盒子阴影 */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.home{
  z-index:999;
  background-color: rgba(	255,255,255,0);
  box-shadow: 0 0 0px rgba(0, 0, 0, 0.3);
}
.navbar .nav {
  width: 100%;
  height: 100%;
  /* 让元素自动水平居中 */
  position: absolute;
  left:0%;
}
.navbar .nav ul {
  /* 相对定位 */
  position: relative;
  /* 弹性布局 */
  display: flex;
  /* 让子元素平均分配宽度 */
  justify-content: space-around;
  width: 100%;
  height: 100%;
}
.navbar .nav ul > li {
  width: 100%;
  height: 100%;
}
/*.banner{*/
/*  position: absolute;*/
/*  width: 100vw;*/
/*  height: 155px;*/
/*  overflow: hidden;*/
/*  background-color: #00b894;*/
/*}*/
.image {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index:1;
}
</style>